package com.lee.lease.model.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;


/**
 * ClassName: RedisConstant
 * Package: com.lee.lease.model.enums
 * Description:
 */

public enum RedisConstant{

    APP_LOGIN_CODE_TTL_SEC(300, "验证码过期时间"),

    APP_LOGIN_CODE_RESEND_TIME_SEC(60, "频繁发验证码的时间");
    public static final String ADMIN_LOGIN_PREFIX = "admin:login:";
    public static final Integer ADMIN_LOGIN_CAPTCHA_TTL_SEC = 60;
    public static final String APP_LOGIN_PREFIX = "app:login:";
    public static final String ADMIN_ROOM_PREFIX = "admin:room:";
    public static final String ADMIN_APARTMENT_PREFIX = "apartment:room:";




    @EnumValue
    private Integer time;

    private String name;

    public Integer getTime() {
        return time;
    }

    public void setTime(Integer time) {
        this.time = time;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    RedisConstant(Integer time, String name) {
        this.time = time;
        this.name = name;
    }



    RedisConstant() {
    }
}


